import {
	defineConfig
} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';

export default defineConfig({

	plugins: [uni()],
	// 配置环境变量
	define: {
		'process.env.VUE_APP_TEST': JSON.stringify('test'),
	},
	// 发布时删除 console
	build: {
		minify: 'terser',
		terserOptions: {
			compress: {
				drop_console: true,
			},
		},
	},
});